//
//  PKBroadcastView.m
//  PianKe
//
//  Created by mingtao on 15/10/6.
//  Copyright (c) 2015年 mingtao. All rights reserved.
//

#import "PKBroadcastView.h"

@implementation PKBroadcastView



-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _viewtsxt = [[UIView alloc]initWithFrame:CGRectMake(20, 0, WIHES-40, 1)];
        _viewtsxt.backgroundColor = [UIColor blackColor];
        
        [self addSubview:_viewtsxt];
        
        
        _ButPlayPause = [UIButton buttonWithType:(UIButtonTypeCustom)];
        
        _ButPlayPause.frame = CGRectMake(WIHES/2-25, 20, 50, 40);
        
       // _ButPlayPause.backgroundColor = [UIColor redColor];
        [_ButPlayPause setImage:[UIImage imageNamed:@"iconfont-zanting"] forState:(UIControlStateNormal)];
        
        [self addSubview:_ButPlayPause];
        
        _ButNextsong=[UIButton buttonWithType:(UIButtonTypeCustom)];
        
        _ButNextsong.frame = CGRectMake(60, 20, 30, 30);
        
       // _ButNextsong.backgroundColor = [UIColor colorWithRed:0.287 green:1.000 blue:0.320 alpha:1.000];
        [_ButNextsong setImage:[UIImage imageNamed:@"iconfont-shangyishou"] forState:(UIControlStateNormal)];
        
        
        
        [self addSubview:_ButNextsong];
        
        _ButOnsong = [UIButton buttonWithType:(UIButtonTypeCustom)];
        
       // _ButOnsong.backgroundColor = [UIColor colorWithRed:1.000 green:0.368 blue:0.370 alpha:1.000];
        _ButOnsong.frame = CGRectMake(WIHES/2+100, 20, 30, 30);
        
        [_ButOnsong setImage:[UIImage imageNamed:@"iconfont-xiayishou"] forState:(UIControlStateNormal)];
        
        [self addSubview:_ButOnsong];
        
        
    }
    
    return self;

}
-(NSMutableArray *)NsmuArray
{
    if (_NsmuArray == nil) {
        _NsmuArray = [NSMutableArray arrayWithCapacity:0];
    }
    
    return _NsmuArray;
}

-(void)setBroadcastModel:(PKRadioDetail *)BroadcastModel
{
    
    _BroadcastModel = BroadcastModel;
    
   // NSLog(@"%@",BroadcastModel.musicUrl);
    
   // [self.NsmuArray addObject:BroadcastModel.musicUrl];
    
    

}

















/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
